phase2: fix signing steps when only apk_key is defined
authorPetr Štetiar <[email protected]>
Sat, 13 Dec 2025 08:02:33 +0000 (08:02 +0000)
committerPetr Štetiar <[email protected]>
Sat, 13 Dec 2025 08:19:17 +0000 (08:19 +0000)
commitb0a3bf3f9b2acf5be391ed1d684e135f1161af19
tree7db130842178a7312d16a2b47090d23534ebea7b
parenta51561bb76cdd9759c693f99527f88a6287532cf
phase2: fix signing steps when only apk_key is defined

Signing steps are currently skipped if only APK signing is configured,
because phase2 effectively enables signing only when `usign` is present.

Fix this by making `IsSignEnabled` explicitly cover APK signing too.

While at it, refactor the signing checks into dedicated helper functions
`IsUsignEnabled`, `IsApkSigningEnabled`, and `IsGpgSigningEnabled`, and
use them consistently to align phase2 with the phase1 implementation.

Signed-off-by: Petr Štetiar <[email protected]>
phase2/master.cfg